{include file="Public/header" title="管理员管理"/}
<!-- 主容器 start -->
<div id="container" class="container-fluid">
    <div class="row-fluid">

        <!-- 左侧导航栏 start -->
        {include file="Public/sidebar"/}
        <!-- 左侧导航栏 end -->
        <!-- 主内容 start -->
        <div id="content" class="span10">
            <!-- 标题 start -->
            <div class="pageTit page-header">
                <h1>管理员管理
                </h1>
                <div class="opt">
                </div>
            </div>
            <!-- 标题 end -->
            <!-- 内容区块 start -->
            <div class="formBox">
                <form id="addform" action="{:U('Admin/Config/admin_save')}" method="post" enctype="multipart/form-data">
                    <input name="id" type="hidden" value=""/>
                    <!-- 标题 -->
                    <div class="control-group config">
                        <label>用户名：</label>
                        <input type="text" name="admin_name" class="form-control js_site_descript" value="{:get_config_value('admin_username')}" style="width:50%" nullmsg="请填写用户名！" placeholder="用户名"/>
                        <span class="Validform_checktip"></span>
                    </div>

                    <div class="control-group config">
                        <label>密码：</label>
                        <input type="text" name="admin_password" value="{:get_config_value('admin_password')}" style="width:50%"
                               class="form-control js_site_descript" placeholder="密码"
                               nullmsg="请填写密码！">
                        <span class="Validform_checktip"></span>
                    </div>

                    <div class="control-group">
                        <input type="submit" class="btn btn-primary Sub" value="保存"/>
                    </div>
                </form>
            </div>
            <!-- 内容区块 end -->
        </div>
        <!-- 主内容 end -->
        <script>
            $(function () {
                //提交表单合法性验证
                $("#addform").Validform({
                    tiptype: function (msg, o, cssctl) {
                        if (!o.obj.is("form")) {
                            var objtip = o.obj.siblings(".Validform_checktip");
                            cssctl(objtip, o.type);
                            objtip.text(msg);
                        }
                    },

                });
            })
        </script>

    </div>
</div>
<!-- 主容器 end -->
{include file="Public/footer"/}